/**
 * 
 */
package com.adkfp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.adkfp.bean.ADKPowerGroupDoorBean;
import com.adkfp.dao.ADKPowerGroupDoorDaoMapper;
import com.adkfp.service.IADKPowerGroupDoorService;

/**
 * @author qwertyuiop
 *
 */
@Service("aDKPowerGroupDoorService")
public class ADKPowerGroupDoorServiceImpl implements IADKPowerGroupDoorService{

	@Resource
	private ADKPowerGroupDoorDaoMapper aDKPowerGroupDoorMapper;

	@Override
	@Transactional
	public void insert(ADKPowerGroupDoorBean pgdbean) {
		
		aDKPowerGroupDoorMapper.insert(pgdbean);
	}

	@Override
	@Transactional
	public List<ADKPowerGroupDoorBean> findByCondition(ADKPowerGroupDoorBean pgdbean) {
		
		return aDKPowerGroupDoorMapper.findByCondition(pgdbean);
	}

	@Override
	@Transactional
	public long findByConditionCount(ADKPowerGroupDoorBean pgdbean) {
		
		return aDKPowerGroupDoorMapper.findByConditionCount(pgdbean);
	}

	@Override
	public void delete(int autoID) {
		
		aDKPowerGroupDoorMapper.delete(autoID);
	}
//用于修改
	@Override
	public ADKPowerGroupDoorBean findById(int autoID) {
		
		return aDKPowerGroupDoorMapper.findById(autoID);
	}
//修改通行时间组
	@Override
	public void update(ADKPowerGroupDoorBean pGdoor) {
		aDKPowerGroupDoorMapper.update(pGdoor);
		
	}
}
